package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.net.ByteArrayEx;

	public class UserGetReadyResponsePack extends AbstractReponsePack
	{

		public var userId:int;
		public var value:Boolean;

		public function UserGetReadyResponsePack(data:ByteArrayEx)
		{
			super(data);
		}

		override public function decode():void
		{
			super.decode();
			data.position = 4;
			userId = data.readUnsignedInt();
			value = (data.readByte() == 0);
		}

		override public function get tag():int
		{
			return ProtocalConstants.USER_GET_READY;
		}
	}
}
